package Projektarbete;

import java.io.Serializable;

public class Restrictions implements Serializable {

	private int u_id;
	private boolean download;
	private boolean upload;
	private boolean remove;
	private boolean write;

	public Restrictions(int u_id, boolean download, boolean upload,
			boolean remove, boolean write) {
		this.u_id = u_id;
		this.download = download;
		this.upload = upload;
		this.remove = remove;
		this.write = write;
	}

	public boolean isDownload() {
		return download;
	}

	public void setDownload(boolean download) {
		this.download = download;
	}

	public boolean isUpload() {
		return upload;
	}

	public void setUpload(boolean upload) {
		this.upload = upload;
	}

	public boolean isRemove() {
		return remove;
	}

	public void setRemove(boolean remove) {
		this.remove = remove;
	}

	public boolean isWrite() {
		return write;
	}

	public void setWrite(boolean write) {
		this.write = write;
	}

	public int getU_id() {
		return u_id;
	}

	public void setU_id(int u_id) {
		this.u_id = u_id;
	}

	@Override
	public String toString() {
		return "Restrictions [u_id=" + u_id + ", download=" + download
				+ ", upload=" + upload + ", remove=" + remove + ", write="
				+ write + "]";
	}

}
